/**
 * 
 */
package neptune.web.client.view.input;

/**
 * @author Roberto Bifulco [RobertoBifulco.it] [info@robertoBifulco.it]
 *
 */
public class FloatInputValidator implements InputValidator {

	/* (non-Javadoc)
	 * @see neptune.web.client.view.input.InputValidator#isValid(java.lang.String)
	 */
	public boolean isValid(String input) {
		if(input != "" && !input.equals("")){
			try {
				Float.parseFloat(input);
			} catch (NumberFormatException e) {
				return false;
			}
			return true;
		}
		
		return false;
	}

}
